home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Gold Medal Software 2
/
Gold Medal Software Volume 2 (Gold Medal) (1994).iso
/
accounts
/
djdemo12.arj
/
DJ.ZIP
/
ED23.T00
< prev
next >
Wrap
Text File
|
1993-02-28
|
12KB
|
514 lines
;*************** DJ DATA ENTRY ********************************************
;release version 1.2 shareware
;added claim number feature to make easy contract printing
;(C)1993 Ed Witles
;**************************************************************************
;Get User Info
clearimage
view "user"
servicename=[Servicename]
deposit=[Deposit]
djname=[Djname]
servicestreet=[Servicestreet]
servicecity=[Servicecity]
servicestate=[Servicestate]
servicezip=[Servicezip]
servicephone=[Servicephone]
clearimage
;**************************************************************************
;**************************************************************************
Proc Customize()
CLEARALL
CLEAR
clearimage
View "user"
EditKey
pickform "F"
While True
Wait Table
Until "F2","F3"
Switch
Case Retval= "F2" : Do_It! main()
Case Retval= "F3" : Reset main()
EndSwitch
EndWhile
endproc
;**************************************************************************
proc Register()
clearimage
clear
@10,10??" Enter Your Name: "
@10,35 ACCEPT "A30"
TO NAME
@10,10??" Enter Your Code: "
@10,35 ACCEPT "A30"
TO CODE
N=LEN(NAME) D=1
FOR A FROM 1 TO N
B=SUBSTR(NAME,A,1)
C=ABS(ASC(B)) D=D+C
ENDFOR
VALID=STRVAL(D)
IF NOT CODE=VALID
THEN MESSAGE " CODE IS INVALID ...... PLEASE TRY AGAIN ....." BEEP
SLEEP 2000 main()
ENDIF
PASSWORD"booger"
EDIT "GEORGE"
MOVETO [Name]
CTRLBACKSPACE
TYPEIN NAME
MOVETO [Key Code]
CTRLBACKSPACE
TYPEIN "VALID"
DO_IT!
UNPASSWORD "booger"
CLEARALL
MESSAGE "THANK YOU FOR REGISTERING..." SLEEP 2000 MAIN()
ENDPROC
;**************************************************************************
PROC VALIDCOPY()
CLEARIMAGE
CLEAR
PASSWORD "booger"
VIEW "GEORGE"
NAME=[Name]
CODE=[Key Code]
UNPASSWORD "booger"
CLEARIMAGE
ENDPROC
;**************************************************************************
PROC exptotsum()
CLEAR
CLEARALL
Query
Expense | Date | Music Supplies | Advertising | Office Supplies |
| >12/31/92 | calc sum | calc sum | calc sum |
Expense | Costume/Cleanings | Vehicle Expenses | Meal Expenses |
| calc sum | calc sum | calc sum |
Expense | Hardware Purchases | Rental/Overhead | Misc Expenses (A) |
| calc sum | calc sum | calc sum |
Expense | Misc Expenses (B) | Misc Expenses (C) | Bad Debts |
| calc sum | calc sum | calc sum |
Endquery
DO_IT!
ClearAll
Clear
View "ANSWER"
While True
Wait Table
Until "F3"
Message "Press F3 When Done....."
Switch
Case Retval= "F3" : Message "" Reset Main()
EndSwitch
EndWhile
EndProc
;***************************************************************************
;**************************************************************************
Proc Expense()
ClearAll
Clear
Empty "Exp_Tmp"
View "Exp_Tmp"
EditKey
formkey
While True
Wait Table
Until "F2","F3"
Switch
Case Retval= "F2" : Do_It! Add "Exp_TMP" "Expense" Main()
Case Retval= "F3" : Reset Main()
EndSwitch
EndWhile
EndProc
;**************************************************************************
;**************************************************************************
Proc NewClient()
ClearAll
Clear
view "Clients"
END
Claim=[Claim #]+1
CLEARIMAGE
Empty "DjClient"
View "DjClient"
EDITKEY
MOVETO [Claim #]
TYPEIN Claim
FORMKEY
While True
Wait Table
Until "F2","F3"
Switch
Case Retval= "F2" : Do_It! Add "DjClient" "clients" Main()
Case Retval= "F3" : Reset Main()
EndSwitch
EndWhile
EndProc
;**************************************************************************
PROC DanceFind()
ClearAll
Clear
@11,10??"Please enter Dance or Song Title: "
Accept "A25"
Picture "*!"
To dance
Message " Searching for: ",DANCE
EMPTY "Dan_Tmp"
Query
Country | Dance Type | Song & Artist 1 | Song & Artist 2 | Song & Artist 3 |
| Check ..~DANCE.. | Check | Check | Check |
Country | Song & Artist 4 | Song & Artist 5 | Song & Artist 6 |
| Check | Check | Check |
Country | Song & Artist 7 | Comments |
| Check | Check |
Endquery
Do_It!
If Not (IsEmpty("Answer"))
Then ADD "Answer" "Dan_tmp" Empty "Answer"
EndIf
ClearImage
Message "Pass #2"
Query
Country | Dance Type | Song & Artist 1 | Song & Artist 2 | Song & Artist 3 |
| Check | Check ..~DANCE.. | Check | Check |
Country | Song & Artist 4 | Song & Artist 5 | Song & Artist 6 |
| Check | Check | Check |
Country | Song & Artist 7 | Comments |
| Check | Check |
Endquery
Do_It!
If Not (IsEmpty("Answer"))
Then ADD "Answer" "Dan_tmp" Empty "Answer"
EndIf
ClearImage
Message "Pass #3"
Query
Country | Dance Type | Song & Artist 1 | Song & Artist 2 | Song & Artist 3 |
| Check | Check | Check ..~DANCE.. | Check |
Country | Song & Artist 4 | Song & Artist 5 | Song & Artist 6 |
| Check | Check | Check |
Country | Song & Artist 7 | Comments |
| Check | Check |
Endquery
Do_It!
If Not (IsEmpty("Answer"))
Then ADD "Answer" "Dan_tmp" Empty "Answer"
EndIf
ClearImage
Message "Pass #4"
Query
Country | Dance Type | Song & Artist 1 | Song & Artist 2 | Song & Artist 3 |
| Check | Check | Check | Check ..~DANCE.. |
Country | Song & Artist 4 | Song & Artist 5 | Song & Artist 6 |
| Check | Check | Check |
Country | Song & Artist 7 | Comments |
| Check | Check |
Endquery
Do_It!
If Not (IsEmpty("Answer"))
Then ADD "Answer" "Dan_tmp" Empty "Answer"
EndIf
ClearImage
Message "Pass #5"
Query
Country | Dance Type | Song & Artist 1 | Song & Artist 2 | Song & Artist 3 |
| Check | Check | Check | Check |
Country | Song & Artist 4 | Song & Artist 5 | Song & Artist 6 |
| Check ..~DANCE.. | Check | Check |
Country | Song & Artist 7 | Comments |
| Check | Check |
Endquery
Do_It!
If Not (IsEmpty("Answer"))
Then ADD "Answer" "Dan_tmp" Empty "Answer"
EndIf
ClearImage
Message "Pass #6"
Query
Country | Dance Type | Song & Artist 1 | Song & Artist 2 | Song & Artist 3 |
| Check | Check | Check | Check |
Country | Song & Artist 4 | Song & Artist 5 | Song & Artist 6 |
| Check | Check ..~DANCE.. | Check |
Country | Song & Artist 7 | Comments |
| Check | Check |
Endquery
Do_It!
If Not (IsEmpty("Answer"))
Then ADD "Answer" "Dan_tmp" Empty "Answer"
EndIf
ClearImage
Message "Pass #7"
Query
Country | Dance Type | Song & Artist 1 | Song & Artist 2 | Song & Artist 3 |
| Check | Check | Check | Check |
Country | Song & Artist 4 | Song & Artist 5 | Song & Artist 6 |
| Check | Check | Check ..~DANCE.. |
Country | Song & Artist 7 | Comments |
| Check | Check |
Endquery
Do_It!
If Not (IsEmpty("Answer"))
Then ADD "Answer" "Dan_tmp" Empty "Answer"
EndIf
ClearImage
Message "Final Pass..."
Query
Country | Dance Type | Song & Artist 1 | Song & Artist 2 | Song & Artist 3 |
| Check | Check | Check | Check |
Country | Song & Artist 4 | Song & Artist 5 | Song & Artist 6 |
| Check | Check | Check |
Country | Song & Artist 7 | Comments |
| Check ..~DANCE.. | Check |
Endquery
Do_It!
If (IsEmpty("Dan_Tmp"))
Then Message "No Records Exist...." Sleep 2000 Main()
Else View "Dan_Tmp" pickform "F"
Wait Table
Message "Press F2 or ESC when done viewing.."
Until "F2","ESC"
EndIf
ClearImage
Clear
Empty "Dan_Tmp"
Main()
EndProc
;**************************************************************************
;**************************************************************************
Proc Contract()
ClearAll
Clear
@10,10??" Enter The Client's Claim # You Want For A Contract... "
Accept "N" To Claim
Query
clients |Claim #| Date | Event | Name(s) | Phone # | Street address |
|~Claim | Check | Check | Check | Check | Check |
clients | City | State | Zip | From | To | Location |
| | | | Check | Check | Check |
clients | Music type | Place | Fee |
| Check | Check | Check _D,CALC _D-~deposit |
Endquery
Do_It!
;**************************************************************************
IF (ISEMPTY("Answer"))
Then Message "No Records Exist For Claim # ",Claim Sleep 2000 Main()
ENDIF
Empty "Contract"
Menu {Tools} {More} {Add} {Answer} {contract}
Menu {Report} {Output} {Contract} {1} {Printer}
Menu {Report} {Output} {Contract} {1} {Printer} Main()
Main()
EndProc
;***************************************************************************
Proc Ask_Song()
ClearAll
Clear
@10,10??" Enter The Group or Leave Blank..... Partial is Ok.. "
@11,5 Accept "A30" To Title
@12,10??" Enter The Song Title or Leave Blank.... Partial is Ok.. "
@13,5 Accept "A30" To Song
Query
Total_cd | CATALOG NUMBER | CATAGORY | TITLE | SIDE OR DISC # |
| Check | Check | Check ..~Title.. | Check |
Total_cd | SONG # | SONG TITLE |
| Check | Check ..~Song.. |
Endquery
Do_It!
ClearAll
Clear
Empty "tocd_tmp" add "answer" "tocd_Tmp"
View "tocd_tmp"
Pickform "f"
While True
Wait Table
Until "F3"
Message "Press F3 When Done....."
Switch
Case Retval= "F3" : Message "" Reset Main()
EndSwitch
EndWhile
Main()
EndProc
;***************************************************************************
Proc ViewClient()
ClearAll
Clear
View "clients"
formkey
While True
Wait Table
Until "F3"
Message "Press F3 When Done....."
Switch
Case Retval= "F3" : Message "" Reset Main()
EndSwitch
EndWhile
EndProc
;***************************************************************************
;***************************************************************************
Proc ViewSongs()
ClearAll
Clear
View "Total_cd"
pickform "f"
While True
Wait Table
Until "F3"
Message "Press F3 When Done....."
Switch
Case Retval= "F3" : Message "" Reset Main()
EndSwitch
EndWhile
EndProc
;**************************************************************************
Proc EdSongs()
Clear
ClearImage
@5,10??" You Are About To Edit The Master Music Table"
sleep 2000
Clear
View "Total_cd"
End
EditKey
While True
Message "Press 'F2' To Accept : Press 'F3' To Abort"
Wait Table
Until "F2","F3"
Switch
Case Retval= "F2" : Do_It! Main()
Case Retval= "F3" : Reset Main()
EndSwitch
EndWhile
EndProc
;**************************************************************************
;**************************************************************************
Proc EdClient()
Clear
ClearImage
@5,10??" You Are About To Edit The Master Client Table"
sleep 2000
Clear
View "clients"
End
EditKey
formkey
While True
Message "Press 'F2' To Accept : Press 'F3' To Abort"
Wait Table
Until "F2","F3"
Switch
Case Retval= "F2" : Do_It! Main()
Case Retval= "F3" : Reset Main()
EndSwitch
EndWhile
EndProc
;**************************************************************************
Proc Main()
VALIDCOPY()
IF NOT CODE="VALID"
THEN MESSAGE "Please Register Me.... " beep SLEEP 7000 beep
ENDIF
MESSAGE""
ClearAll
Clear
@1,10??" **** Your Personal Disc Jokey Management Program ****"
@2,10??" Version 1.2 (C) 1993 Ed Witles"
@3,10??" This copy is registered to ",NAME
@5,10??" ***************************************************"
@6,10??" * Dj Main Menu *"
@7,10??" * (0) To Customize With Your Name *"